package com.icow.wms.basic.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.icow.wms.basic.mapper.AgvTypeMapper;
import com.icow.wms.basic.domain.AgvType;
import com.icow.wms.basic.service.IAgvTypeService;

/**
 * agvTypeService业务层处理
 * 
 * @author bcs
 * @date 2024-08-21
 */
@Service
public class AgvTypeServiceImpl implements IAgvTypeService 
{
    @Autowired
    private AgvTypeMapper agvTypeMapper;

    /**
     * 查询agvType
     * 
     * @param id agvTypeID
     * @return agvType
     */
    @Override
    public AgvType selectAgvTypeById(Long id)
    {
        return agvTypeMapper.selectAgvTypeById(id);
    }

    /**
     * 查询agvType列表
     * 
     * @param agvType agvType
     * @return agvType
     */
    @Override
    public List<AgvType> selectAgvTypeList(AgvType agvType)
    {
        return agvTypeMapper.selectAgvTypeList(agvType);
    }

    /**
     * 新增agvType
     * 
     * @param agvType agvType
     * @return 结果
     */
    @Override
    public int insertAgvType(AgvType agvType)
    {
        return agvTypeMapper.insertAgvType(agvType);
    }

    /**
     * 修改agvType
     * 
     * @param agvType agvType
     * @return 结果
     */
    @Override
    public int updateAgvType(AgvType agvType)
    {
        return agvTypeMapper.updateAgvType(agvType);
    }

    /**
     * 批量删除agvType
     * 
     * @param ids 需要删除的agvTypeID
     * @return 结果
     */
    @Override
    public int deleteAgvTypeByIds(Long[] ids)
    {
        return agvTypeMapper.deleteAgvTypeByIds(ids);
    }

    /**
     * 删除agvType信息
     * 
     * @param id agvTypeID
     * @return 结果
     */
    @Override
    public int deleteAgvTypeById(Long id)
    {
        return agvTypeMapper.deleteAgvTypeById(id);
    }
}
